package com.ruoyi.people.users.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户信息管理对象 tb_user
 * 
 * @author yjy
 * @date 2025-06-06
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 标识用户id */
    @Excel(name = "标识用户id")
    private Long userId;

    /** 账号 */
    @Excel(name = "账号")
    private String username;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 存储图片地址 */
    @Excel(name = "存储图片地址")
    private String avatar;

    /** 住址 */
    @Excel(name = "住址")
    private String address;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 简介 */
    @Excel(name = "简介")
    private String description;

    /** 套餐id */
    @Excel(name = "套餐id")
    private Long packId;

    /** 状态  0：正常，1：异常，2：封禁 */
    @Excel(name = "状态  0：正常，1：异常，2：封禁")
    private String status;

    /** 权限字符 */
    @Excel(name = "权限字符")
    private String role;

    /** 开始时间（用于范围查询） */
    private String beginTime;

    /** 结束时间（用于范围查询） */
    private String endTime;

    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }

    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }

    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }

    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }

    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setPackId(Long packId) 
    {
        this.packId = packId;
    }

    public Long getPackId() 
    {
        return packId;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setRole(String role)
    {
        this.role = role;
    }

    public String getRole() 
    {
        return role;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(String beginTime) {
        this.beginTime = beginTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("avatar", getAvatar())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("description", getDescription())
            .append("packId", getPackId())
            .append("status", getStatus())
            .append("role", getRole())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
